package com.mtable.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "mtable", catalog = "mtable")
public class Mtable implements java.io.Serializable {

	// Fields

	private Integer mtableId;
	private String mtableName;
	private String mtableType;

	// Constructors

	/** default constructor */
	public Mtable() {
	}

	/** full constructor */
	public Mtable(String mtableName, String mtableType) {
		this.mtableName = mtableName;
		this.mtableType = mtableType;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "mtable_id", unique = true, nullable = false)
	public Integer getMtableId() {
		return this.mtableId;
	}

	public void setMtableId(Integer mtableId) {
		this.mtableId = mtableId;
	}

	@Column(name = "mtable_name")
	public String getMtableName() {
		return this.mtableName;
	}

	public void setMtableName(String mtableName) {
		this.mtableName = mtableName;
	}

	@Column(name = "mtable_type", length = 1)
	public String getMtableType() {
		return this.mtableType;
	}

	public void setMtableType(String mtableType) {
		this.mtableType = mtableType;
	}

}